<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
.box{width:200px;height:200px;border:4px solid red;text-align:center;}
img{vertical-align:middle;}
span{height:100%;display:inline-block; vertical-align:middle;}
</style>
</head>
<body>
<div class="box">
  <img src="1d.jpg"><span></span>
</div>
</body>
</html>
